<?php $this->load->library('urlutility');?>

<div class="item bder_d5 txt_indent20 pdt5 pdb5 ff_museo700 f17 mgb5">Suggestions</div>
<div style="overflow:hidden;" class="item bder_d5 h217">
  <div class="fl h217 w29 cursor_poiter bgr_img_slide1" onclick="SlideImage('1');" id="slide1"></div>
  <div class="fl w500 pst_relative left-500" id="boxslide1" style="display: none;">
    <h3 class="ff_museo500 txt_indent20 mgt9 mgb0">Activities Suggestions</h3>
    <?php foreach($activities as $k=>$listactivities){?>
    <a class="<?php if($k%2==0) echo "fl";else echo "fr";?> w220 mgl20 mgr10 mgt6 gray" href="<?php echo $this->urlutility->getactivity_detail($listactivities['id'],$listactivities['name'],'') ?>"> <img width="55" height="43" class="fl mgt3 mgr8" alt="Activities Suggestions - <?php echo $listactivities["name"]; ?>" title="Activities Suggestions - <?php echo $listactivities["name"]; ?>" src="<?php echo base_url()."uploads/activity/".$listactivities["avatar"]; ?>">
    <h4 class="blue h14 ov_fl_hidden f11 mgt0 mgb0"><?php echo $listactivities["name"]; ?></h4>
    <p class="f10 mgt0 mgb0 ov_fl_hidden h26"><?php echo $listactivities["description"]; ?></p>
    </a>
    <?php }?>
  </div>
  <div class="fl mgl3 h217 w29 cursor_poiter bgr_img_slide2 active" onclick="SlideImage('2');" id="slide2"></div>
  <div class="fl w500 pst_relative left0" id="boxslide2" style="display: block;">
    <h3 class="ff_museo500 txt_indent20 mgt9 mgb0">Restaurant Suggestions</h3>
    <?php foreach($restaurant as $k=>$listrestaurant){?>
    <a class="<?php if($k%2==0) echo "fl";else echo "fr";?> w220 mgl20 mgr10 mgt6 gray" href="<?php echo $this->urlutility->getrestaurant($listrestaurant['id']);?>"> <img width="55" height="43" class="fl mgt3 mgr8" alt="Restaurant Suggestions - <?php echo $listrestaurant["name"]; ?>" title="Restaurant Suggestions - <?php echo $listrestaurant["name"]; ?>" src="<?php echo base_url()."uploads/restaurant/".$listrestaurant["avatar"]; ?>">
    <h4 class="blue h14 ov_fl_hidden f11 mgt0 mgb0"><?php echo $listrestaurant["name"]; ?></h4>
    <p class="f10 mgt0 mgb0 ov_fl_hidden h26"><?php echo $listrestaurant["description"]; ?></p>
    </a>
    <?php }?>
  </div>
  <div class="fl mgl3 h217 w29 cursor_poiter bgr_img_slide3" onclick="SlideImage('3');" id="slide3"></div>
  <div class="fl w500 pst_relative left-500" id="boxslide3" style="display: none;">
    <h3 class="ff_museo500 txt_indent20 mgt9 mgb0">Packages Suggestions</h3>
    <?php 
		$today=getdate();
		
	foreach($package as $listpackage){
		
		?>
    <a class="fl w230 mgl20 mgr10 mgt6 gray" href="<?php echo $this->urlutility->getpackage_information($listpackage['id'],$listpackage['title'],'')?>"> <img width="55" height="43" class="fl mgt3 mgr8" alt="Package Suggestions - <?php echo $listpackage["title"]; ?>" title="Package Suggestions - <?php echo $listpackage["title"]; ?>" src="<?php echo base_url()."uploads/package/".$listpackage["avatar"]; ?>">
    <h4 class="blue h14 ov_fl_hidden f11 mgt0 mgb0"><?php echo $listpackage["title"]; ?></h4>
    <p class="f10 mgt0 mgb0 ov_fl_hidden h26"><?php echo $listpackage["description"]; ?></p>
    </a>
    <?php }?>
  </div>
  <div class="fl mgl3 h217 w29 cursor_poiter bgr_img_slide4" onclick="SlideImage('4');" id="slide4"></div>
  <div class="fl w500 pst_relative left-500" id="boxslide4" style="display: none;">
    <h3 class="ff_museo500 txt_indent20 mgt9 mgb0">Car & Guide Suggestions</h3>
    <div class="fl w185 pdl20 pdr10">
      <?php foreach($car as $listcar){?>
      <a class="item mgt6 gray" href="<?php echo $this->urlutility->getcar_detail($listcar["id"],$listcar['provide'],$listcar['service'],$listcar['type']) ?>"> <img width="55" height="43" alt="Car Suggestions - <?php echo $listcar["name"]; ?>" title="Car Suggestions - <?php echo $listcar["name"]; ?>" class="fl mgt3 mgr8" src="<?php echo base_url()."uploads/car/".$listcar["avatar"]; ?>">
      <h4 class="blue f11 mgt0 mgb0 h14 ov_fl_hidden"><?php echo $listcar["name"]; ?></h4>
      <p class="f10 mgt0 mgb0 h26 ov_fl_hidden"><?php echo $listcar["description"]; ?></p>
      </a>
      <?php }?>
      </div>
    <div class="fl w185 pdl20 pdr10">
      <?php foreach($guide as $listguide){?>
      <a class="item mgt6 gray" href="<?php echo $this->urlutility->getguild_detail($listguide["id"]) ?>"> <img width="55" height="43" class="fl mgt3 mgr8" alt="Guide Suggestions - <?php echo $listguide["name"]; ?>" title="Guide Suggestions - <?php echo $listguide["name"]; ?>" src="<?php echo base_url()."uploads/guild/".$listguide["avatar"]; ?>">
      <h4 class="blue f11 mgt0 mgb0 h14 ov_fl_hidde"><?php echo $listguide["name"]; ?></h4>
      <p class="f10 mgt0 mgb0 h26 ov_fl_hidden"><?php echo $listguide["description"]; ?></p>
      </a>
      <?php }?>
      </div>
  </div>
  <div class="fl mgl3 h217 w29 cursor_poiter bgr_img_slide5" onclick="SlideImage('5');" id="slide5"></div>
  <div class="fl w500 pst_relative left-500" id="boxslide5" style="display: none;">
    <h3 class="ff_museo500 txt_indent20 mgt9 mgb0">Flights Suggestions</h3>
    <?php foreach($flight as $k=>$listflight){?>
    <a class="fl w220 mgl20 mgr10 mgt6 gray" href=""> <img width="55" height="43" class="fl mgt3 mgr8" alt="Flights Suggestions - <?php echo $listflight["airline"]; ?>" title="Flights Suggestions - <?php echo $listflight["airline"]; ?>" src="<?php echo base_url()."uploads/flight/".$listflight["avatar"]; ?>">
    <h4 class="blue h14 ov_fl_hidden f11 mgt0 mgb0"><?php if($listflight["airline"]==1) echo "Air Bagan";
														  else if($listflight["airline"]==2) echo "Air Mandalay";
														  else if($listflight["airline"]==3) echo "Air KBZ";
														  else if($listflight["airline"]==4) echo "Golden Myanmar Airlines";
														  else if($listflight["airline"]==5) echo "Yangon Airways";
														  else if($listflight["airline"]==6) echo "Asian wings";?></h4>
    <p class="f10 mgt0 mgb0 ov_fl_hidden h26"><?php echo $listflight["description"]; ?></p>
    </a>
    <?php }?>
  </div>
</div>
<script>
$('#boxslide2').show();
$('#boxslide1').hide();	
$('#boxslide3').hide();	
$('#boxslide4').hide();	
$('#boxslide5').hide();
function SlideImage(numberslide){					
	for(var r=1;r<6;r++){
		if(r==numberslide){
			$('#slide'+r).addClass('active');
			$("#boxslide"+r).show(1500).removeClass('left-500').addClass('left0');	
		}else{
			$('#slide'+r).removeClass('active');
			$('#boxslide'+r).hide(500).removeClass('left0').addClass('left-500',1500);
		}
	}
};
</script>
